package com.sjsu.aws.configurationMgmt;

/**
 * 
 * @author Deepali Pawar
 * 
 */
public class ConfigMgmt {
	
	private String	configId;
	private String	clientPort;
	private String	dataDir;
	
	public String getClientPort() {
		return this.clientPort;
	}
	
	public void setClientPort(String clientPort) {
		this.clientPort = clientPort;
	}
	
	public String getDataDir() {
		return this.dataDir;
	}
	
	public void setDataDir(String dataDir) {
		this.dataDir = dataDir;
	}
	
	public String getConfigId() {
		return configId;
	}
	
	public void setConfigId(String configId) {
		this.configId = configId;
	}
	
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
		        + ((this.clientPort == null) ? 0 : this.clientPort.hashCode());
		result = prime * result
		        + ((this.configId == null) ? 0 : this.configId.hashCode());
		result = prime * result
		        + ((this.dataDir == null) ? 0 : this.dataDir.hashCode());
		return result;
	}
	
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ConfigMgmt other = (ConfigMgmt) obj;
		if (this.clientPort == null) {
			if (other.clientPort != null)
				return false;
		} else if (!this.clientPort.equals(other.clientPort))
			return false;
		if (this.configId == null) {
			if (other.configId != null)
				return false;
		} else if (!this.configId.equals(other.configId))
			return false;
		if (this.dataDir == null) {
			if (other.dataDir != null)
				return false;
		} else if (!this.dataDir.equals(other.dataDir))
			return false;
		return true;
	}
}
